package modele;


public class De {
	
	private int nbFaces;
	

	public De() {
		super();
		this.nbFaces = 6;
	}


	public int getNbFaces() {
		return nbFaces;
	}

	public void setNbFaces(int nbFaces) {
		this.nbFaces = nbFaces;
	}

	public int lancer(){
		int de = (int) Math.random()*10; 
		while(de>this.getNbFaces() || de<1)
		{
			de = (int) (Math.random()*10);
		}
		return de;
	}
	
	public boolean aDouble(int res1 , int res2){
	
		if(res1 == res2)
			return true;
		
		return false;
	}

}
